package com.csair.youth.constant;

import java.io.File;

public interface Constant {
	//sys config keys and values
	public static final String REPO_STATUS_KEY = "repo_status"; //资源库状态(开放,关闭)
	public static final String REPO_STATUS_OPEN = "open";
	public static final String REPO_STATUS_CLOSE = "close";
	
	public static final String DOWNLOAD_SPEED_KEY = "download_speed";
	
	public static final String SERVER_IP_PORT_KEY = "server_ip_port";
	public static final String SERVER_FTP_KEY = "server_ftp";
	
	//session attributes
	public static final String USER_ID_SESSION_KEY = "youth_id_123456789";
	public static final String USER_NAME_SESSION_KEY = "youth_user_123456789";
	public static final String USER_ROLE_SESSION_KEY = "youth_role_123456789";
	public static final String USER_PERMISSION_MAP_KEY = "youth_role_permissions_123456789";
	public static final String REDIRECT_URL_KEY = "youth_redirect_url_123456789";
	
	//upload attributes
//	public static final String UPLOAD_TMP_PATH = "D:"+File.separator+"youth_tmp_upload";	//未审核路径
//	public static final String UPLOAD_STORE_PATH = "D:"+File.separator+"youth_store";	//供下载路径
	
	//系统特殊权限(必须)
	public static final String PERMISSION_AUDIT_EMAIL_URL = "#AUDIT_EMAIL";
	public static final String PERMISSION_AUDIT_EMAIL_NAME = "审核邮件发送";
	
	//文件审核结果
	public static final String RESOURCE_AUDIT_WAIT = "0";
	public static final String RESOURCE_AUDIT_ING = "1";
	public static final String RESOURCE_AUDIT_PASS = "2";
	public static final String RESOURCE_AUDIT_FAIL = "3";
	
	//特殊用户（相当于机器人）
	public static final String USER_AUTO_UPLOAD_LOGIN_NAME = "$$$###upload###$$$";
	public static final String USER_AUTO_UPLOAD_NAME = "FTP上传用户";
	
	//categories
	public static final String CATEGORY_FTP_AUTO_NAME = "未分类(ftp自动上传)";
}
